package com.test.simplechat.server;

import io.netty.channel.ChannelId;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 通道组池，管理所有websocket连接
 *
 * @author wen
 */
public class MyChannelHandlerPool {
    public static final Map<String, ChannelId> CHANNEL_ID_MAP = new ConcurrentHashMap<>();
    public static ChannelGroup channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);

    public MyChannelHandlerPool() {
    }

}
